#include "gui_progress_bar_demo.h"
#include "gui_progress_bar.h"

typedef lv_obj_t* (*create_status_bar_func)(lv_obj_t* parent, int16_t x,
        int16_t y);

create_status_bar_func p_create_status_bar_func = NULL;

void DEMO_bar_1(void)
{
// 创建一个屏幕
    lv_obj_t* scr = lv_scr_act();

// p_create_status_bar_func = create_old_status_bar;

// p_create_status_bar_func = create_status_bar;
    p_create_status_bar_func = create_status_beet_bar;
// 创建进度条
    lv_obj_t* bar = p_create_status_bar_func(scr, 10, 10);

// 设置进度条的值
    lv_bar_set_value(bar, 50, LV_ANIM_OFF);
}